package net.tensor.skynet.service

import net.tensor.skynet.common.user.entity.Result
import net.tensor.skynet.entity.Repo
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface GitHubService {
    @GET("users/{user}/repos")
    fun getListRepos(@Path("user") user: String): Call<List<Repo>>

    @GET("/{name}")
    fun callServerTest(@Path("name") name: String): Call<Result>

    @GET("/")
    fun callServerTest(): Call<Result>

    @POST("/")
    fun callServerPostTest(@Body result: Result): Call<Result>

    @POST("/")
    fun callServerPostTest(): Call<Result>
}
